/**
 * @copyright @2015-2016 Abel-Studio.All Rights Reserved
 */
package com.yoooya.base.utils.qrcode;

import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;

/**
 * 
 * @author Sun Yijing<br />
 *         Copyright © Xiamen Yoooya NetWorks Co.,Ltd.
 * @since yoooya software platform v1.0.0
 * @version 1.0.0 <br />
 *          <table border="1" cellpadding="3" cellspacing="0">
 *          <tr>
 *          <th align="left" colspan="3"><b>修改历史</b></th>
 *          </tr>
 *          <tr>
 *          <td>修改日期</td>
 *          <td>修改人</td>
 *          <td>修改描述</td>
 *          </tr>
 *          <tr>
 *          <td>2018-6-20</td>
 *          <td>Sun Yijing</td>
 *          <td>新建</td>
 *          </tr>
 *          </table>
 */
public class QRCodeParams {
	private String txt; // 二维码内容
	private String qrCodeUrl; // 二维码网络路径
	private String logoPath; // logo图片
	private Integer width = 300; // 二维码宽度
	private Integer height = 300; // 二维码高度
	private Integer onColor = 0xFF000000; // 前景色
	private Integer offColor = 0xFFFFFFFF; // 背景色
	private Integer margin = 1; // 白边大小，取值范围0~4
	private ErrorCorrectionLevel level = ErrorCorrectionLevel.L; // 二维码容错率

	public String getTxt() {
		return txt;
	}

	public void setTxt(String txt) {
		this.txt = txt;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	public String getQrCodeUrl() {
		return qrCodeUrl;
	}

	public void setQrCodeUrl(String qrCodeUrl) {
		this.qrCodeUrl = qrCodeUrl;
	}

	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public Integer getOnColor() {
		return onColor;
	}

	public void setOnColor(Integer onColor) {
		this.onColor = onColor;
	}

	public Integer getOffColor() {
		return offColor;
	}

	public void setOffColor(Integer offColor) {
		this.offColor = offColor;
	}

	public ErrorCorrectionLevel getLevel() {
		return level;
	}

	public void setLevel(ErrorCorrectionLevel level) {
		this.level = level;
	}

	public Integer getMargin() {
		return margin;
	}

	public void setMargin(Integer margin) {
		this.margin = margin;
	}
}
